/**
 * admui-basic v2.1.0 (http://www.admui.com/)
 * Copyright 2015-2019 Admui Team
 * Licensed under the Admui License 1.1 (http://www.admui.com/about/license)
 */
(function(window, document, $) {
  'use strict';

  window.App.extend({
    run: function() {
      $('#dataTableExample').DataTable(
        $.concatCpt('dataTable', {
          columnDefs: [
            {
              render: function(data, type, row) {
                return data + ' (' + row[3] + ')';
              },
              targets: 0
            },
            {
              visible: false,
              targets: [3]
            }
          ]
        })
      );
    }
  });

  $(function() {
    window.App.run();
  });
})(window, document, jQuery);
